﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTOFrameworks
{
    public class Account : IEnumItem
    {
        string name;

        public string AccountName
        {
            get { return name; }
            set { name = value; }
        }

        public Guid AccountId { get; set; }

        #region IEnumItem 成员

        public string Name
        {
            get
            {
                return AccountName;
            }
            set
            {
                AccountName = value;
            }
        }

        public Guid Id
        {
            get
            {
                return AccountId;
            }
            set
            {
                AccountId = value;
            }
        }

        #endregion
    }

    public interface IEnumItem
    {
        string Name { get; }

        Guid Id { get; }
    }
}
